package com.lijie.bs_recruit.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.github.pagehelper.PageInfo;
import com.lijie.bs_recruit.model.News;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author lijie
 * @since 2021-04-07
 */
public interface NewsService extends IService<News> {

    //分页展示新闻
    PageInfo<News> selectNews(Integer page, News news);

    //新增新闻信息
    Boolean addNews( News news);

    //修改新闻信息
    Boolean updateNews(News news );

    //删除（下架）新闻信息
    Boolean deleteNews(News news);

    //按newsId查找新闻;
    News selectNewsById(News news);

    //首页分页展示信息
    PageInfo<News> selectNewsByUser(Integer page, News news);

    //增加新闻浏览记录
    Boolean addNewsLookNum(News news);
}
